package com.jdjc.subject;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * 刷题微服务启动类
 */
@SpringBootApplication
@ComponentScan("com.jdjc")//@ComponentScan 告诉Spring扫描指定的包及其子包，寻找带有 @Component、@Service、@Repository 或 @Controller 注解的类，并将它们作为bean注册到Spring上下文中。
@MapperScan("com.jdjc.**.mapper")
@EnableFeignClients(basePackages = "com.jdjc")
public class SubjectApplication {
    public static void main(String[] args) {
        SpringApplication.run(SubjectApplication.class, args);
    }
}
